﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio.Device
{
    /// <summary>
    /// 设备字节数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class DeviceDataByte<T> : DeviceData<T> where T : IDevice<IDevicePara>
    {
        /// <summary>
        /// 数据字节数组
        /// </summary>
        public byte[] DataBytes { get; set; }

        /// <summary>
        /// 带参构造函数
        /// </summary>
        /// <param name="argChannel">通道接口对象</param>
        public DeviceDataByte(T argChannel, byte[] argBytes)
            : base(argChannel)
        {
            this.DataBytes = argBytes;
        }
    }
}
